/**
 * Created by asus on 2017/10/31.
 */
public class SLNode<T> {
    protected T element;
    protected int left;
    protected int right;

    public SLNode (T element){
        this.element = element;
        left=right=-1;
    }
    public SLNode (T element,int left ,int right){
        this.element = element;
        this.left = left;
        this.right = right;
    }
    public void setElement(T element){
        this.element = element;
    }


}
